<?php
namespace app\Admin\model;

use think\Db;
use think\Model;

class Config extends Model
{
	public function get_Config()
	{
		return Db::name('config')->where(array('id'=>1))->find();
	}

	public function Edit_Config($data)
	{
		$config = new Config;
		return $config->save($data,['id'=>1]);
	}
}